#include "common/syscomm.h"
#include <cstdio>
#include <cstring>
#include <cstdlib>

using namespace std;

int main(int argc, char *argv[]){
	if(argc<2){
		syscomm::error("arg1. dataconf file name.");
	}
	FILE *fdataconf=fopen(argv[1],"r");
	FILE *ftmp=fopen("/tmp/linearity_reduce_dataconf.tmp","w");
	char tmp;
	while(fscanf(fdataconf,"%c",&tmp)!=EOF){
		if(tmp!=9) fprintf(ftmp,"%c",tmp);
	}
	fclose(fdataconf);
	fclose(ftmp);
	char comm[1000]="mv /tmp/linearity_reduce_dataconf.tmp ";
	strcat(comm,argv[1]);
	system(comm);
	return 0;
}
